package com.sykj.springboot.controller;


import com.sykj.springboot.common.contants.MapCatchs;
import com.sykj.springboot.common.entity.DataResponse;
import com.sykj.springboot.common.entity.JsonResult;
import com.sykj.springboot.entity.SysMenu;
import com.sykj.springboot.entity.User;
import com.sykj.springboot.entity.vo.SysMenuVo;
import com.sykj.springboot.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author derking
 * @since 2022-09-20
 */
@RestController
@RequestMapping("sysmenu")
public class SysMenuController {

    @Autowired
    SysMenuService SysMenuService;

    @RequestMapping("getMenuList")
    public DataResponse getMenuList(HttpServletRequest request){
        DataResponse response = new DataResponse();
        List<SysMenuVo> list = SysMenuService.getAllMenuList();
        response.setData(list);
        return response;
    }
}
